package joonany.basic.j04;

public class J04_Expression34 {

	public static void main(String[] args) {
		
		int x = 5;
		
		System.out.println("가.  " + (++x + 2));		// 8
		x = 5;
		System.out.println("나.  " + (x-- + 5));		// 10
		x = 5;
		System.out.println("다.  " + (2 * x++));		// 10
		x = 5;
		System.out.println("라.  " + (5 * ++x + 10));// 22
		x = 5;
		System.out.println("마.  " + (++x + x++));	// 12
		x = 5;
		System.out.println("바.  " + (++x + ++x));	// 13
		x = 5;
		System.out.println("사.  " + (x-- + x++));	// 9
		x = 5;
		System.out.println("아.  " + (--x + ++x));	// 9

	}

}
